#include "junix.h"
#include <fstab.h>

int main(int argc, char **argv)
{
	struct fstab *ft;
	setfsent();
	while( (ft=getfsent()) != NULL )
	{
		fprintf(stdout,"fs_spec:    %s\n", ft->fs_spec);
		fprintf(stdout,"fs_file:    %s\n", ft->fs_file);
		fprintf(stdout,"fs_vfstype: %s\n", ft->fs_vfstype);
		fprintf(stdout,"fs_type:    %s\n", ft->fs_type);
		fprintf(stdout,"fs_mntops:  %s\n\n", ft->fs_mntops);
	}
	endfsent();
	return 0;
}

